package com.wyu.blog.service;

import com.wyu.blog.dao.LoginTicketMapper;
import com.wyu.blog.entity.LoginTicket;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LoginTicketService {

    @Autowired
    private LoginTicketMapper loginTicketMapper;


//    public void deleteComment(Integer commentId) {
//        commentMapper.deleteCommentById(commentId);
//    }
//
//    public List<Comment> findCommentByArticleId(Integer articleId) {
//        return commentMapper.selectCommentById(articleId);
//    }


    public Integer addLoginTicket(LoginTicket loginTicket){
        return loginTicketMapper.insertLoginTicket(loginTicket);
    }
}
